package com.atguigu.gulimail.product.service;

import com.atguigu.gulimail.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2024-11-03 10:05:39
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params, String attrType, Long catelogId);

    void save(AttrVo attr);

    void updateById(AttrVo attr);

    AttrVo getAttrVo(AttrEntity attr);

    void removeByIds(Long[] attrIds);

    PageUtils unbindList(Long catelogId, Map<String, Object> params);

    List<Long> selectSearchAttrIds(List<Long> baseAttrIds);
}

